﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VemTransporte.Models.Basica;

namespace VemTransporte.Models.Factory
{
    public class HorarioFactory : IHorarioFactory
    {
        #region Singleton

        private HorarioFactory() {}

        private static volatile HorarioFactory _instance;

        public static HorarioFactory Instance 
        {
            get
            {
                if (_instance == null)
                {
                    lock (typeof(HorarioFactory))
                    {
                        if (_instance == null)
                        {
                            _instance = new HorarioFactory();
                        }
                    }
                }
                return _instance;
            }        
        }
        #endregion

        public Horario CreateHorario()
        {

            Horario retorno = null;

            retorno = new Horario();

            return retorno;
        
        }
    }
}